home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr13 / dapz.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1993-05-09  |  2KB  |  78 lines

  1. echo off
  2. :mdDAP
  3. if a:==%1 goto ok
  4. if b:==%1 goto ok
  5. if A:==%1 goto ok
  6. if B:==%1 goto ok
  7. echo Error!
  8. echo Format:  INSTALL d1: d2: , where d1 is source drive and d2 is target.
  9. echo Example:  INSTALL A: C: -- to install from A: to C:
  10. echo Note:  DAP will automatically make its own directory (\dap) 
  11. echo         in the target drive.
  12. goto theEND
  13. :ok
  14. md %2\dap
  15. cls
  16. echo ********************************
  17. echo *         DAP Hard Disk        *
  18. echo *         Installation         *
  19. echo *            Utility           *
  20. echo ********************************
  21. echo This utility will install DAP from 
  22. echo          %1 to %2\DAP\
  23. rem %1 is source
  24. rem %2\dap\ is target
  25. echo *******************************
  26. echo *       Insert DAP Disk       *
  27. echo *        Into Drive %1        *
  28. echo *******************************
  29. pause
  30. :disk1
  31. If exist %1\dap.exe goto cpy1
  32. echo *******************************
  33. echo *        Insert Disk #1       *
  34. echo *        Into Drive %1        *
  35. echo *******************************
  36. pause
  37. goto disk1
  38. :cpy1
  39. echo Copying...DAP.EXE (Program Code)
  40. copy %1\dap.exe %2\dap\*.*
  41. echo Copying...MENU0525.DAT (Data File)
  42. copy %1\menu0525.dat %2\dap\*.*
  43. echo Copying...PART2.EXE (Program Code)
  44. copy %1\part2.exe %2\dap\*.*
  45. :disk2
  46. If exist %1\nutr525.dat goto cpy2
  47. echo *******************************
  48. echo *        Insert Disk #2       *
  49. echo *        Into Drive %1        *
  50. echo *******************************
  51. pause
  52. goto disk2
  53. :cpy2
  54. echo Copying...NUTR525.DAT (Data File)
  55. copy %1\nutr525.dat %2\dap\*.*
  56. echo Copying...TAB0525.DAT (Data File)
  57. copy %1\tab0525.dat %2\dap\*.*
  58. :disk3
  59. If exist %1\manual.out goto cpy3
  60. echo *******************************
  61. echo *        Insert Disk #3       *
  62. echo *        Into Drive %1        *
  63. echo *******************************
  64. pause
  65. goto disk3
  66. :cpy3
  67. echo Copying...MANUAL.OUT (Program Documentation)
  68. copy %1\manual.out %2\dap\*.*
  69. :byebye
  70. %2
  71. cd \dap
  72. echo cd \dap > \dap.bat
  73. echo dap >> \dap.bat
  74. cls
  75. echo Installation complete!
  76. echo Type DAP to run program.
  77. :theEND
  78. echo on